package GenericStudy.Exa3;

public class GenericComparisonTest {
    public static void main(String[] args) {
        String[] books = { "Java从入门到精通（第2版）", "Java编程宝典", "细说Java", "视频学Java" };
        Integer[] nums={5,4,6,8,6};
        System.out.println("麻子新书列表：");
        for (String book : books) {
            System.out.println(book);
        }
        String min = GenericComparison.getMin(books);
        System.out.println("按名称排序的第一本书：");
        System.out.println(min);
        String[] result=GenericComparison.sorted(books);
        System.out.println("排序后：");
        for(String a:result){
            System.out.println(a);
        }
        Integer[] numResult=GenericComparison.sorted(nums);
        for(Integer a:numResult){
            System.out.println(a);
        }
//        Object[] objects = new Object[10];
//        Object test = GenericComparison.getMin(objects);
    }
}
